package com.xsjl.qa.client;

import com.xsjl.common.entity.Result;
import com.xsjl.common.entity.StatusCode;
import org.springframework.stereotype.Component;

/**
 * 标签熔断器类
 */
@Component
public class LabelClientImpl implements LabelClient {

    @Override
    public Result listById(String id) {
        //记录日志、发邮件、发短信等
        System.out.println("调用了熔断器类LabelClientImpl");
        //返回结果
        return new Result(false, StatusCode.ERROR,"远程调用失败，熔断器启动了");
    }
}